{if count($defines) > 0}
    <h2>Defines</h2>
    <div style="padding: 1em;">
    <table class="methods" width="100%" height="100%">
    {section name=def loop=$defines}
    {if $show == 'summary'}
     define constant <a href="{$defines[def].id}">{$defines[def].define_name}</a> = {$defines[def].define_value}, {$defines[def].sdesc}<br>
    {else}
        
        
        
        <tr>
            <td class="methodTd td_nact">
                <a name="{$defines[def].define_link}"></a>
                <div class="methodArrow notactive"><a href="javascript: void(null)" class="micon"> </a></div>
            </td>
            <td class="inf">
                <a href="javascript: void(null)" class="methodLink type-const">
                <strong>{$defines[def].define_name}</strong> = {$defines[def].define_value|replace:"\n":"<br />"}
                </a>
                <div class="details" style="display: none">
                    {include file="docblock_new.tpl" sdesc=$defines[def].sdesc desc=$defines[def].desc tags=$defines[def].tags}
                    {*if $defines[def].define_conflicts.conflict_type}
                    <p><b>Conflicts with defines:</b> 
                    {section name=me loop=$defines[def].define_conflicts.conflicts}
                    {$defines[def].define_conflicts.conflicts[me]}<br />
                    {/section}
                    </p>
                    {/if*}
                </div>
            </td>
            <td class="linenum" width="1%">
            line <span class="line-number">{if $defines[def].slink}{$defines[def].slink}{else}{$defines[def].line_number}{/if}</span>
            </td>
        </tr>

    {/if}
    {/section}
    </table>
    </div>
{/if}